package enum_;

public enum MyEnum {
    RED, GREEN, BLUE;

    public static void main(String[] args) {
        MyEnum[] values = MyEnum.values();
        for (MyEnum value : values) {
            System.out.println(value + ": " + value.ordinal());
        }
    }
}
